package com.kedacom.ctsp.authority.dto;

import com.kedacom.ctsp.web.dto.ImportDTO;
import lombok.Data;
import org.apache.commons.collections.map.HashedMap;

import java.util.Map;

/**
 * @author sunchenjie
 * @date 2017/12/24 0024
 */
@Data
public class DepartmentImportDTO extends ImportDTO {

    public static String[] KEY_ARR = new String[]{"index", "code", "name", "parentCode", "roles"};
    public static Map<String, String> headerMapper = new HashedMap() {{
        put("单位编号", "code");
        put("单位名称", "name");
        put("上级单位编号", "parentCode");
    }};
    public static Map<String, String> headerMapper_en = new HashedMap() {{
        put("DepartmentCode", "code");
        put("DepartmentName", "name");
        put("SuperiorDepartmentCode", "parentCode");
    }};
    /**
     * 所在地区(字典)
     */
    private String district;
    /**
     * 名称
     */
    private String name;
    /**
     * 全称
     */
    private String fullName;
    /**
     * 部门编码
     */
    private String code;
    /**
     * 父级部门编码
     */
    private Long parentId;
    private String parentCode;
    /**
     * 描述
     */
    private String description;
    /**
     * 角色id
     */
    private String roleIds;

}
